package com.atguigu.spzx.manager.service;

import com.atguigu.spzx.model.dto.product.ProductSaveDTO;
import com.atguigu.spzx.model.dto.product.ProductSearchDTO;
import com.atguigu.spzx.model.entity.product.Product;
import com.atguigu.spzx.model.vo.product.ProductVo;
import com.github.pagehelper.PageInfo;

/**
 * @author LT
 * @create 2024-03-18-20:59
 */
public interface ProductService {
    PageInfo<ProductVo> list(Integer pageNum, Integer pageSize, ProductSearchDTO productSearchDTO);

    void deleteById(Long id);

    void saveProduct(ProductSaveDTO productSaveDTO);

    ProductSaveDTO getById(Long id);

    void updateById(ProductSaveDTO productSaveDTO);

    void updateAuditStatus(Long id, Integer auditStatus);

    void updateStatus(Long id, Integer status);

}
